//
//  FirstNavigationController.m
//  GIFShow
//
//  Created by 陈凯 on 15/6/4.
//  Copyright (c) 2015年 CK. All rights reserved.
//

#import "FirstNavigationController.h"
#import "MySettingOptions.h"
@interface FirstNavigationController ()

@end

@implementation FirstNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self myTheme];
    [[NSNotificationCenter defaultCenter]addObserverForName:@"ChangeTheme" object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) {
        [self myTheme];
    }];
}
-(void)myTheme{
    NSString * backcolorstr = [MySettingOptions defaultOptions].backColor;
    NSString * name = [NSString stringWithFormat:@"%@nav",backcolorstr];
    [self.navigationBar setBackgroundImage:[UIImage imageNamed:name] forBarMetrics:UIBarMetricsDefault];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
